/**
 * Created by evantang on 2018/4/25.
 */
import {Pipe, PipeTransform} from "@angular/core";

@Pipe({name: 'criticalLevel'})
export class CriticalLevelPipe implements PipeTransform {
  transform(value: string, args: string[]): any {
    switch (value) {
      case 'L1':
        return '一级';
      case 'L2':
        return '二级';
      case 'L3':
        return '三级';
      default:
        return '--';
    }
  }
}
